<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/system/include/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>流程部署</title>
<link rel="stylesheet" type="text/css" href="${jsAndCss}/css/style.css" />
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/WdatePicker.css" />
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/skin_/table.css" />
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/jquery.grid.css" />
<script type="text/javascript" src="${jsAndCss}/js/jquery.js"></script>	
<script type="text/javascript" src="${jsAndCss}/js/bootstrap.js"></script>	
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="${jsAndCss}/css/treeTable.css" />
<script type="text/javascript" src="${jsAndCss}/js/jquery.treeTable.js"></script>
<script type="text/javascript">
$(function() {
	$("#treeTable").treeTable({expandLevel : 5}).show();
});
</script>
</head>
<body>
	<div id="container" style="position: relative;">
		<div id="hd"></div>
		<div id="bd">
			<div id="main">
				<div class="search-box ue-clear">
					<div class="search-area">
						<div class="kv-item ue-clear">
							<label>选择时间：</label>
							<div class="kv-item-content ue-clear">
								<span class="choose"> <span class="checkboxouter">
										<input type="radio" name="time" /> <span class="radio"></span>
								</span> <span class="text">全部</span>
								</span> <span class="choose"> <span class="checkboxouter">
										<input type="radio" name="time" /> <span class="radio"></span>
								</span> <span class="text">近3天</span>
								</span> <span class="choose"> <span class="checkboxouter">
										<input type="radio" name="time" /> <span class="radio"></span>
								</span> <span class="text">近一周</span>
								</span> <span class="choose"> <span class="checkboxouter">
										<input type="radio" name="time" /> <span class="radio"></span>
								</span> <span class="text">近一月</span>
								</span> <span class="choose"> <span class="checkboxouter">
										<input type="radio" name="time" data-define="define" /> <span
										class="radio"></span>
								</span> <span class="text">自定义</span>
								</span> <span class="define-input"> <input type="text"
									placeholder="开始时间" /> <span class="division"></span> <input
									type="text" placeholder="结束时间" />
								</span>
							</div>
						</div>
						<div class="kv-item ue-clear">
							<label>选择类型:</label>
							<div class="kv-item-content">
								<select>
									<option>全部</option>
									<option>全部</option>
									<option>全部</option>
								</select>
							</div>
						</div>
					</div>
					<div class="search-button">
						<input class="button" type="button" value="搜索一下" /> 
						<%-- <a href="${ctx}/apply/handleIndex">
						<input class="button" type="button" value="返回上一页" /></a> --%>
					</div>
				</div>

				<div class="table">
					<div class="opt ue-clear">
						<span class="sortarea"> <span class="sort"> <label>排序：</label>
								<span class="name"> <i class="icon"></i> <span
									class="text">名称</span>
							</span>
						</span> <i class="list"></i> <i class="card"></i>
						</span> <span class="optarea"> <a href="javascript:;" class="add">
								<i class="icon"></i> <span class="text">添加</span>
						</a> <a href="javascript:;" class="delete"> <i class="icon"></i> <span
								class="text">删除</span>
						</a> <a href="javascript:;" class="statistics"> <i class="icon"></i>
								<span class="text">统计</span>
						</a> <a href="javascript:;" class="config"> <i class="icon"></i> <span
								class="text">配置</span>
						</a>
						</span>
					</div>
					<div class="grid">
						<table id="treeTable"
							class="table table-striped table-bordered table-condensed hide">
							<thead>
								<tr>
									<th>菜单名称</th>
									<th>连接</th>
									<th style="text-align: center;">更新人</th>
									<th>更新日期</th>
				
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${menuList }" var="menu">
									<c:if test="${menu.parentId eq '0' }">
									<tr id="${menu.menuId}" pId="${menu.parentId}">
										<td nowrap>
											<%-- <i class="icon-${not empty menu.icon?menu.icon:' hide'}"></i> --%>
											<a href="${ctx}/sys/menu/toEdit?id=${menu.menuId}">${menu.menuName}</a>
										</td>
										<td title="${menu.href}">${menu.href}</td>
										<td style="text-align: center;">${menu.updateBy}</td>
										<td title="${menu.updateDate}">${menu.updateDate}</td>
										<td nowrap><a
											href="${ctx}/sysmgr/menu/gotoMenuEdit?editFlag=2&menuId=${menu.menuId}">修改</a>
											<a href="javascript:menuMgr.delMenu(${menu.menuId})">删除</a> <a
											href="${ctx}/sysmgr/menu/gotoMenuEdit?editFlag=1&parentId=${menu.menuId}">添加下级菜单</a>
										</td>
									</tr>
									<c:forEach items="${menuList }" var="menu1">
									<c:if test="${menu1.parentId eq menu.menuId }">
										<tr id="${menu1.menuId}" pId="${menu1.parentId}">
											<td nowrap>
												<%-- <i class="icon-${not empty menu.icon?menu.icon:' hide'}"></i> --%>
												<a href="${ctx}/sys/menu/toEdit?id=${menu1.menuId}">${menu1.menuName}</a>
											</td>
											<td title="${menu1.href}">${menu1.href}</td>
											<td style="text-align: center;">${menu1.updateBy}</td>
											<td title="${menu1.updateDate}">${menu1.updateDate}</td>
											<td nowrap><a
												href="${ctx}/sysmgr/menu/gotoMenuEdit?editFlag=2&menuId=${menu1.menuId}">修改</a>
												<a href="javascript:menuMgr.delMenu(${menu1.menuId})">删除</a> <a
												href="${ctx}/sysmgr/menu/gotoMenuEdit?editFlag=1&parentId=${menu1.menuId}">添加下级菜单</a>
											</td>
										</tr>
									</c:if>
									</c:forEach>
									
									</c:if>
								</c:forEach>
							</tbody>
						</table>

					</div>
					<div class="pagination"></div>
					<div id="imgWindowBox"
						style="position: absolute; top: 0px; left: 200px; width: 700px; display: none; background-color: white; z-index: 99; box-shadow: 0px 0px 5px #999">
						<div id="close"
							style="position: absolute; top: 10px; right: 15px; font-size: 18px; z-index: 100">X</div>
						<div id="imgWindow"></div>
					</div>

				</div>
			</div>
		</div>
	</div>
</body>

<%-- <script type="text/javascript" src="${jsAndCss}/js/global.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/jquery.select.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/core.js"></script>
<script type="text/javascript" src="${jsAndCss}/js/jquery.pagination.js"></script> --%>
<%-- <script type="text/javascript" src="${jsAndCss}/js/jquery.grid.js"></script> --%>
<%-- <script type="text/javascript" src="${jsAndCss}/js/WdatePicker.js"></script> --%>
